function Pet(words, ji) {
    this.words = words;
    this.ji = ji;
    // console.log(this.arguments)
    this.spack = function () {
        console.log(`技能：${this.words}`);
        console.log(`爱好：${this.ji}`);
    }
}

function Dog() {
    Pet.apply(this, arguments);
    // arguments.ji = ji;
    console.log(arguments)
    console.log(this)
   
}

var dog = new Dog('wang,wang', '爱吃骨头');

dog.spack()